// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期：2023-12-01 16:05:35
// 生成路径: api/v1/sms/plugin_sms_log.go
// 生成人：gfast
// desc:短信日志相关参数
// company:云南奇讯科技有限公司
// ==========================================================================

package sms

import (
	"github.com/gogf/gf/v2/frame/g"
	commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
	"github.com/tiger1103/gfast/v3/internal/app/plugins/sms/model"
)

// PluginSmsLogSearchReq 分页请求参数
type PluginSmsLogSearchReq struct {
	g.Meta `path:"/list" tags:"插件接口/短信日志" method:"get" summary:"短信日志列表"`
	commonApi.Author
	model.PluginSmsLogSearchReq
}

// PluginSmsLogSearchRes 列表返回结果
type PluginSmsLogSearchRes struct {
	g.Meta `mime:"application/json"`
	*model.PluginSmsLogSearchRes
}

// PluginSmsLogAddReq 添加操作请求参数
type PluginSmsLogAddReq struct {
	g.Meta `path:"/add" tags:"插件接口/短信日志" method:"post" summary:"短信日志添加"`
	commonApi.Author
	*model.PluginSmsLogAddReq
}

// PluginSmsLogAddRes 添加操作返回结果
type PluginSmsLogAddRes struct {
	commonApi.EmptyRes
}

// PluginSmsLogEditReq 修改操作请求参数
type PluginSmsLogEditReq struct {
	g.Meta `path:"/edit" tags:"插件接口/短信日志" method:"put" summary:"短信日志修改"`
	commonApi.Author
	*model.PluginSmsLogEditReq
}

// PluginSmsLogEditRes 修改操作返回结果
type PluginSmsLogEditRes struct {
	commonApi.EmptyRes
}

// PluginSmsLogGetReq 获取一条数据请求
type PluginSmsLogGetReq struct {
	g.Meta `path:"/get" tags:"插件接口/短信日志" method:"get" summary:"获取短信日志信息"`
	commonApi.Author
	Id uint `p:"id" v:"required#主键必须"` //通过主键获取
}

// PluginSmsLogGetRes 获取一条数据结果
type PluginSmsLogGetRes struct {
	g.Meta `mime:"application/json"`
	*model.PluginSmsLogInfoRes
}

// PluginSmsLogDeleteReq 删除数据请求
type PluginSmsLogDeleteReq struct {
	g.Meta `path:"/delete" tags:"插件接口/短信日志" method:"delete" summary:"删除短信日志"`
	commonApi.Author
	Ids []uint `p:"ids" v:"required#主键必须"` //通过主键删除
}

// PluginSmsLogDeleteRes 删除数据返回
type PluginSmsLogDeleteRes struct {
	commonApi.EmptyRes
}
